package cn.formaggie.service.face;

import cn.formaggie.entity.model.roleandpermission.Permission;
import cn.formaggie.entity.utilModel.PermissionIdWithBool;

import java.util.List;
import java.util.Map;

public interface PermissionService {

    List<Permission> getPermissionsByRoleId(Integer roleId);

    List<Permission> getPermissions();

    Map<String,List<Permission>> getPermissionsOrderByType();

    Map<String,List<PermissionIdWithBool>> getPermissionsAndRoleSelected(Map<String,List<Permission>> all,Map<String,List<Permission>> permissionsOfRole);
}
